home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / audio / synthia / globj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.9 KB  |  113 lines

  1. /*
  2.  * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*
  18.  * Copyright (C) 1991, Silicon Graphics, Inc.
  19.  * All Rights Reserved.
  20.  */
  21.  
  22.     /*
  23.      *  globj.h  -  Arbitrary object definitions for the GL
  24.      *
  25.      *  Jim Bennett
  26.      *  1991
  27.      */
  28.  
  29. #define    CASE_OBJ    1        /* Keyboard case        */
  30. #define    KEYL        2        /* White keys:            */
  31. #define    KEYR        3        /* with black keys on left,    */
  32. #define    KEYB        4        /* right, both, or neither side    */
  33. #define    KEYN        5
  34. #define    BLKEY        6        /* Black key            */
  35. #define    OCTAVE        7        /* An octave of keys        */
  36. #define    ALL_KEYS    8        /* All keys on the keyboard    */
  37.  
  38.                 /* Define tops of keys, for hilighting    */
  39. #define    KEYL_TOP    9        /* White keys:            */
  40. #define    KEYR_TOP    10        /* with black keys on left,    */
  41. #define    KEYB_TOP    11        /* right, both, or neither side    */
  42. #define    KEYN_TOP    12
  43. #define    BLKEY_TOP    13        /* Black key            */
  44.  
  45. #define    VSLIDER        14        /* Volume slider        */
  46. #define    VPEG        15        /* Peg for volume slider    */
  47.  
  48. #define    BPATCH        16        /* Button background patch    */
  49. #define    SEL_BUTTON    17        /* Normal selection button    */
  50. #define    DOWN_BUTTON    18        /* Depressed (selected) button    */
  51.  
  52. #define    NUM_BUTTONS    16        /* ID's 17 - 32 for buttons    */
  53.  
  54. #define    KEYNAMES    100        /* Base for individual key names */
  55.  
  56.     /*
  57.      *  RGB color definitions
  58.      */
  59.  
  60. #define    BACKGROUND    200,255,255
  61.  
  62. #define    CASE_TOP    64,64,85
  63. #define    CASE_FRONT    16,16,36
  64. #define    CASE_SIDE    0,0,0
  65.  
  66. #define    WHITE_KEY_TOP    255,240,215
  67. #define    WHITE_KEY_SIDE    200,192,160
  68.  
  69. #define    BLACK_KEY_TOP    32,32,40
  70. #define    BLACK_KEY_SIDE    0,0,0
  71.  
  72. #define    HILIGHT        128,96,64
  73.  
  74. /* Overall dimensions of case    */
  75.  
  76. #define    CASE_W        36.0
  77. #define    CASE_D        15.0
  78. #define    FRONT_H         2.0
  79. #define    BACK_H         4.0
  80.  
  81. /* Dimensions of inset in keyboard case (for keys)    */
  82.  
  83. #define    INSET_W        30.0
  84. #define    INSET_D         7.0
  85. #define    INSET_H         1.0
  86. #define    BLACK_KEY_H     (0.5+INSET_H)
  87.  
  88. #define    DEPRESS_H     0.5
  89.  
  90. #define    VPEG_H         0.3
  91. #define    BUTTON_H     0.5
  92. #define    DOWN_BUTTON_H     0.2
  93.  
  94. /* Number of octaves and keys on the keyboard    */
  95.  
  96. #define    OCTAVES        5
  97. #define    WHITE_KEYS    ((OCTAVES*7)+1)
  98. #define    BLACK_KEYS    (OCTAVES*5)
  99. #define    TOTAL_KEYS    (WHITE_KEYS+BLACK_KEYS)
  100. #define    LAST_KEY    (TOTAL_KEYS-1)
  101.  
  102. /* Define cursor types    */
  103.  
  104. #define    BUSY_BEE_1    1
  105. #define    BUSY_BEE_2    2
  106.  
  107. /* Define texture and texture environment handles    */
  108.  
  109. #define    LOGO_TEX    1
  110. #define    TITLE_TEX    2
  111.  
  112. #define    DECAL_ENV    1
  113.